/*
 * @Author: humengchuan 531537052@qq.com
 * @Date: 2023-12-27 11:31:55
 * @LastEditors: humengchuan 531537052@qq.com
 * @LastEditTime: 2024-06-26 08:34:21
 * @FilePath: \project\node-project\website-admin\src\router\index.ts
 * @Description: 
 */
import { createRouter, createWebHistory } from "vue-router"

const routes = [
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    component: () => import("@/views/NotFound.vue"),
  },
  {
    path: "/",
    name: "Home",
    component: () => import("@/views/admin/home.vue"),
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue"),
  },
  {
    path: "/about",
    name: "About",
    component: () => import("@/views/about/index.vue"),
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router